﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Wedo.Mvc.Utility;
using Wedo.Recognition.Service;

namespace Wedo.Recognition.Web
{
    public class WebActionCompetence : IActionCompetence
    {

        public bool HadCompetence(string actionName, string controllerName, string[] roles)
        {
            var work = Container_Config.GetIUnitWork();
            return work.User.IsInResource(controllerName, actionName, roles);
        }
    }
}